package sistemioperativi.matrice.es5;
import java.util.concurrent.atomic.*;

public class RigaTS extends Thread {

	private AtomicInteger [][] matrix;
	private int riga;
	
	public RigaTS(AtomicInteger [][]matrix, int riga){
		
		this.matrix = matrix;
		this.riga = riga;
	}
	
	public void run(){
		
		for(int j = 0; j<matrix[1].length;j++){
			matrix[riga][j].addAndGet(-1);
	
		}
	}
	
}


